Micron Document
🎖️GitЯра🎖️

Node / meshtastic / Meshtastic-Android / files / core / common / src / commonMain / kotlin / org / meshtastic / core / common / util / MeasurementSystem.kt

Displaying Raw • Download

core/common/src/commonMain/kotlin/org/meshtastic/core/common/util/MeasurementSystem.kt 2d20cd8a4708e2ef66e98d5259f3a97ec93f240a (2d20cd8a) Text, 1.64 KB

T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.common.util

T8b949e/** Represents the system's preferred measurement system. */
Tff7b72enum Tff7b72class T56d364MeasurementSystem Tb4b4b4{
Te6edf3METRICTb4b4b4,
Te6edf3IMPERIALTb4b4b4,
Tb4b4b4}

T8b949e/** returns the system's preferred measurement system. */
Tff7b72expect Tff7b72fun Td2a8ffgetSystemMeasurementSystemTb4b4b4(Tb4b4b4)Tb4b4b4: Te6edf3MeasurementSystem

T8b949e/** Returns the device's current locale as a 2-letter ISO 639-1 language code (e.g. "en", "es", "fr"). */
Tff7b72expect Tff7b72fun Td2a8ffcurrentLocaleCodeTb4b4b4(Tb4b4b4)Tb4b4b4: Tffa657String

T8b949e/**
* Returns the device's current region as a 2-letter ISO 3166-1 alpha-2 country code (e.g. "US", "DE"), or an empty
* string when the region is unknown. Used to region-filter marketplace links.
*/
Tff7b72expect Tff7b72fun Td2a8ffcurrentRegionCodeTb4b4b4(Tb4b4b4)Tb4b4b4: Tffa657String

T8b949e/**
* Returns the device locale as a CMP resource qualifier string. Examples: "pt-rBR", "zh-rCN", "fr" (no region when not
* specified). Use this to construct locale-qualified file resource paths like "files-$qualifier/docs/...".
*/
Tff7b72expect Tff7b72fun Td2a8ffcurrentLocaleQualifierTb4b4b4(Tb4b4b4)Tb4b4b4: Tffa657String

Served by rngit 1.5.0 - Generated in 0.04s